package my.edu.common.config;

import lombok.extern.slf4j.Slf4j;
import my.edu.common.interceptor.SwaggerInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@Slf4j
public class MyWebMvcConfig
//        implements WebMvcConfigurer
{

    @Autowired
    private SwaggerInterceptor swaggerInterceptor;

//    public void addInterceptors(InterceptorRegistry registry) {
//        log.info("开始注册自定义拦截器...");
//        registry.addInterceptor(swaggerInterceptor)
//                .addPathPatterns("/favicon.ico");
//               // .excludePathPatterns("/admin/employee/login");
//
//    }



}